<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件


//收货地址接口配置
 \think\Route::get('address/list/:user_id/:page/:length','api/user_address/lists');//查询收货地址相关信息
 \think\Route::post('address/create/','api/user_address/create');//添加收货地址相关信息
 \think\Route::post('address/update/','api/user_address/update');//删除收货地址相关信息
 \think\Route::get('address/delete/:address_id','api/user_address/delete');//更新收货地址相关信息
 \think\Route::get('address/detail/:address_id','api/user_address/detail');//获取收货地址详情
 \think\Route::get('address/set_default/:address_id','api/user_address/set_default');//设置默认收货地址
 
 //购物车接口配置
 \think\Route::get('cart/list/:user_id/:page/:length','api/user_cart/lists');//查询购物车商品列表信息
 \think\Route::post('cart/create/','api/user_cart/create');//添加商品到购物车
 \think\Route::post('cart/update/','api/user_cart/update');//更新购物车商品相关信息
 \think\Route::get('cart/delete/:cart_id','api/user_cart/delete');//删除购物车商品


 //商品前台操作配置
 \think\Route::get('goods/category/','api/user_goods/category');//获取商品分类信息
 \think\Route::get('goods/list/:type_id/:page/:length','api/user_goods/lists');//查询商品相关信息
 \think\Route::get('goods/search/:keywords/:page/:length','api/user_goods/search');//查询商品相关信息
 \think\Route::get('goods/filter/:cat_id/:page/:length','api/user_goods/filter');//过滤某一分类的属性列表
 \think\Route::get('goods/detail/:goods_id','api/user_goods/detail');//获取单一商品页
 \think\Route::get('goods/description/:goods_id','api/user_goods/description');//获取商品详情页

 
 







